<%@page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

    <title>vue基础</title>
    <script src="static/vue/vue.js"></script>
    <script src=”https://unpkg.com/axios/dist/axios.min.js”></script>

</head>
<body>
    <div id="app">
        {{message}}
        <button @keyup.enter="getMethod" ><input type="text" ></button>
    </div>

    <script>
        var app =new Vue({
            el:"#app",
            data:{
                message:"hello"
            },
            methods:{
                getMethod:function () {
                    alert("dd");
                    axios.get("/controller.do").then(function (response) {

                    })
                }
            }
        })
    </script>
</body>
</html>